export const imgerr = {
  inserted(el, options) {
    el.src = el.src || options.value
    // console.log(el, binding)
    el.onerror = function() {
      // console.log(options)
      // console.log('ok')
      el.src = options.value
    }
  },
  componentUpdated(el, options) {
    el.src = el.src || options.value
  }
}
